/*

Author   : chaos

FileName : struct2.cpp

Date     : 10/08/17 15:00:30

*/
#include <iostream>
#include <cstring>
using namespace std;

struct STUDENT {
    char name[16];
    char no[5];
    float height,weight;
    int math,english;
};

typedef struct STUDENT STUD;

int main(int argc ,char *argv[])
{
    STUD Mary;

    strcpy(Mary.name,"Mary");
    strcpy(Mary.no,"0003");
    Mary.height = 173.5;
    Mary.weight = 67.5;
    Mary.math = 60;
    Mary.english = 65;

    cout << "STUD Mary:" << endl;
    cout << "name=" << Mary.name << endl;
    cout << "no=" << Mary.no << endl;
    cout << "height=" << Mary.height << endl;
    cout << "weight=" << Mary.weight << endl;
    cout << "math=" << Mary.math << endl;
    cout << "english=" << Mary.english << endl;


    return 0;
}
